@layout("/common/_tree_container.html",{plugins:["ztree"],js:["/assets/modular/system/zxHuopin/zxHuopin.js"],css:["/assets/common/css/beautiful.css"]}){
<link rel="stylesheet" href="${ctxPath}/assets/common/css/pack.css?v=${constants.getReleaseVersion()}" media="all">
<div class="layui-body-header">
    <span class="layui-body-header-title">装修货品表管理</span>
</div>
<style>
    .layui-form-label{
        width: 90px !important;
    }
</style>
<div id="myContiner" style="height: 100%">
    <div class="ui-layout-west">
        <div class="box box-main">
            <div class="ui-layout-content">
                <div id="kemuTree"></div>
            </div>
        </div>
    </div>
    <div class="ui-layout-center">
        <div class="layui-fluid">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form toolbar">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">科目<span style="color: red;">*</span></label>
                                        <div class="layui-inline lablew">
                                            <input id="btyZxKemuIdView" name="btyZxKemuIdView" placeholder="科目" readonly type="text" class="layui-input" lay-verify="required" required/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">货品名称<span style="color: red;">*</span></label>
                                        <div class="layui-inline lablew">
                                            <input id="name" name="name" placeholder="货品名称" type="text" class="layui-input" lay-verify="required" required/>
                                        </div>
                                    </div>
<!--                                    <div class="layui-inline">-->
<!--                                        <label class="layui-form-label">货品分类<span style="color: red;">*</span></label>-->
<!--                                        <div class="layui-input-block">-->
<!--                                            <select name="zxHuopinFenleiId" lay-filter="zxHpFlId" id="zxHpFlId">-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->
                                    <div class="layui-inline">
                                        <label class="layui-form-label">货品分类<span style="color: red;">*</span></label>
                                        <div class="layui-inline lablew" id="kemuTrees">
                                            <input id="zxHpFlId" name="zxHuopinFenleiId" type="hidden">
                                            <input id="zxHpFlName" name="zxHpFlName" placeholder="请选择所属分类" type="text" class="layui-input" lay-verify="required" required/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">规格</label>
                                        <div class="layui-inline lablew">
                                            <input id="guige" name="guige" placeholder="规格" type="text" class="layui-input" />
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单位</label>
                                        <div class="layui-inline lablew">
                                            <input id="danwei" name="danwei" placeholder="单位" type="text" class="layui-input"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单价</label>
                                        <div class="layui-inline lablew">
                                            <input id="danjia" name="danwei" placeholder="单价" type="text" class="layui-input"/>
                                        </div>
                                    </div>
                                    <!--<div class="layui-inline">
                                        <label class="layui-form-label">货品编码<span style="color: red;">*</span></label>
                                        <div class="layui-input-block">
                                            <input id="code" name="code" placeholder="请输入编码" type="text" class="layui-input" lay-verify="required" required/>
                                        </div>
                                    </div>-->
                                    <div class="layui-inline">
                                        <div class="layui-inline">
                                            <button class="layui-btn layui-btn-sm" lay-filter="btnSubmit" lay-submit>添加</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label" id="bxr_sx">供货商/收款人</label>
                                        <div class="layui-inline lablew">
                                            <select name="ghs" lay-filter="ghs" id="ghs" lay-search="ghs">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">是否有科目</label>
                                        <div class="layui-inline lablew">
                                            <select name="hasKemu" lay-filter="hasKemu" id="hasKemu"
                                                    lay-search="hasKemu">
                                                <option value="" selected>全部</option>
                                                <option value="1">是</option>
                                                <option value="0">否</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">货品名称</label>
                                        <div class="layui-inline lablew">
                                            <input id="condition" class="layui-input" type="text" placeholder="货品名称"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">货品类型</label>
                                        <div class="layui-inline lablew">
                                            <select name="hpType" id="hpType">
                                                <option value="" selected>全部</option>
                                                <option value="1">硬装</option>
                                                <option value="2">软装</option>
                                                <option value="3">手工</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <div class="layui-inline">
                                        <button id="btnSearch" class="layui-btn layui-btn-sm marrig">搜索</button>
                                        <button id="btnExp" class="layui-btn layui-btn-sm">导出</button>
                                        <button id="btnPlSzKemu" class="layui-btn layui-btn-sm">设置科目</button>
                                        <button id="btnIsJgc" class="layui-btn layui-btn-sm">设置甲供材</button>
                                        <button id="btnqxJgc" class="layui-btn layui-btn-sm">取消甲供材</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <table class="layui-table" id="zxHuopinTable" lay-filter="zxHuopinTable"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<style scoped>
    .layui-form-label{
        text-align:left !important;
    }
    .layui-inline{
        margin-bottom: 5px !important;
    }
</style>
<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="ghs">设置供货商</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
@}